#ifndef SIYICAMERACONTROL_H
#define SIYICAMERACONTROL_H

#include <QObject>
#include <iostream>
#include "sdk/siyi_camera.hpp"
#include <cstdlib>
#include <chrono>
#include <mutex>
class SiYiCameraControl : public QObject
{
    Q_OBJECT
public:
    explicit SiYiCameraControl(QObject *parent = nullptr);
    ~SiYiCameraControl();
signals:

public :
    void handleUp();
    void handleDown();
    void handleLeft();
    void handleRight();
    void handleReset();
public slots:
    void SiYiCameraInit();

private:
    std::mutex m_mtx;
    double m_curr_yaw = 0.;
    double m_curr_pitch = 0.;
    bool m_init_flag ;
    std::string m_ip;

};

#endif // SIYICAMERACONTROL_H
